/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.member.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 会员
 *
 * @author baogs
 * @date 2022-07-01 10:52:57
 */
@Data
@TableName("ums_member")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "会员")
public class Member extends Model<Member> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 会员等级id
     */
    @ApiModelProperty(value="会员等级id")
    private Long levelId;

    /**
     * 用户名
     */
    @ApiModelProperty(value="用户名")
    private String username;
    /**
     * 真实姓名
     */
    @ApiModelProperty(value="真实姓名")
    private String realName;

    /**
     * 密码
     */
    @ApiModelProperty(value="密码")
    private String password;

    /**
     * 昵称
     */
    @ApiModelProperty(value="昵称")
    private String nickname;

    /**
     * 手机号码
     */
    @ApiModelProperty(value="手机号码")
    private String mobile;

    /**
     * 邮箱
     */
    @ApiModelProperty(value="邮箱")
    private String email;

    /**
     * 头像
     */
    @ApiModelProperty(value="头像")
    private String header;

    /**
     * 性别
     */
    @ApiModelProperty(value="性别")
    private Integer gender;

    /**
     * 生日
     */
    @ApiModelProperty(value="生日")
    private LocalDateTime birth;

    /**
     * 所在城市
     */
    @ApiModelProperty(value="所在城市")
    private String city;

    /**
     * 职业
     */
    @ApiModelProperty(value="职业")
    private String job;

    /**
     * 个性签名
     */
    @ApiModelProperty(value="个性签名")
    private String sign;

    /**
     * 用户来源
     */
    @ApiModelProperty(value="用户来源")
    private Integer sourceType;

    /**
     * 积分
     */
    @ApiModelProperty(value="积分")
    private Integer integration;

    /**
     * 成长值
     */
    @ApiModelProperty(value="成长值")
    private Integer growth;

    /**
     * 启用状态
     */
    @ApiModelProperty(value="启用状态")
    private Integer status;
    /**
     * 是否已认证
     */
    @ApiModelProperty(value="是否已认证")
    private Integer isVerify;

    /**
     * 注册时间
     */
    @ApiModelProperty(value="注册时间")
    private LocalDateTime createTime;

    /**
     * 访问令牌
     */
    @ApiModelProperty(value="访问令牌")
    private String accessToken;

    /**
     * 访问令牌的过期时间
     */
    @ApiModelProperty(value="访问令牌的过期时间")
    private String expiresIn;

    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;

    /**
     * 删除标志
     */
    @ApiModelProperty(value="删除标志")
    private String delFlag;
    /**
     * 区块链账户地址
     */
    @ApiModelProperty(value="区块链账户地址")
    private String opbChainClientAddress;

    /**
     * 父id
     */
    @ApiModelProperty(value="父id")
    private Long parentId;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private Long userId;

	@ApiModelProperty(value="支付密码")
    private String payPass;

}
